SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 63790: Python command to start SAS® Information Retrieval Studio's Proxy Server via Command Line fails with an error "Cannot connect to admin server"

DetailsAboutRate It

In SAS Information Retrieval Studio, starting Proxy Server via Command Line using the Python command ("python information-retrieval-studio-client.py --start-proxy-server") fails.  An error is displayed.

Error: Cannot connect to admin server

This error occurs because a "Downloader" field is missing from the information-retrieval-studio-client.py file. The field must be parsed correctly for the Python command to start Proxy Server successfully. 

 

To resolve this issue, follow the steps below:

1. Back up your current  information-retrieval-studio-client.py file under SAS configuration directory/Lev#/Applications/SASInformationRetrievalStudioforSAS/bin directory.  (# indicates a number.)

 

2. Locate the following line (235 by default) in the file.

document = xml.dom.minidom.parse(urllib2.build_opener(urllib2.ProxyHandler({})).open("http://" + self.hostname + ":" + str(self.port) + "/StartProxy", r'''<?xml version="1.0"?><StartProxy/>'''.encode("utf-8")))

3. Modify the line to match the following, and save the file:

document = xml.dom.minidom.parse(urllib2.build_opener(urllib2.ProxyHandler({})).open("http://" + self.hostname + ":" + str(self.port) + "/StartProxy", r'''<?xml version="1.0"?><StartProxy><Downloader>0</Downloader></StartProxy>'''.encode("utf-8")))

 

 

 



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Information Retrieval StudioLinux for x641.531.549.4 TS1M09.4 TS1M6
Microsoft® Windows® for x641.531.549.4 TS1M09.4 TS1M6
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.